package com.ruoyi.pay.manager.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ruoyi.pay.manager.domain.PayManager;
import com.translate.mapper.IBaseMapper;

/**
 * 支付管理Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-22
 */
public interface PayManagerMapper extends IBaseMapper<PayManager> {
	/**
	 * 更新teamId
	 * @param teamId
	 * @param userId
	 * @return
	 */
	int updateTeamId(int teamId, int userId);
	
	List<PayManager> selectListByBetweenTeamId(@Param("ids") long[] ids);
	
	int updatePrice(
			int id, 
			BigDecimal price, 
			@Param("cancelledByPayManager") boolean cancelledByPayManager,
			@Param("serviceName") String serviceName
	);
	
	int updatePriceData(
			int id, 
			BigDecimal price
	);
	
	

	BigDecimal sumPriceByTeam(@Param("teamId") Long teamId);
}
